package main

import (
	"runtime"

	"vov.cx/kagura/utils/app"
)

func init() {
	root.AddCommand(app.New(
		app.Use("version"),
		app.Alias("ver"),
		app.Run(func(c *app.Command, args []string) {
			c.Printf(
				"app version: %s go version: %s/%s %s\n",
				c.Root().Version,
				runtime.GOOS,
				runtime.GOARCH,
				runtime.Version(),
			)
		}),
	))
}
